package com.demo.webService;

import javax.jws.WebMethod;
import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.demo.entity.UserInfo;
import com.demo.service.UserInfoService;
/***
 * 
 * @author zj
 *
 */
@Component
@WebService(serviceName="jaxUserInfoService")
public class UserInfoServiceEndPoint {
	
	
	@Autowired
	UserInfoService userInfoService;
	
	
	@WebMethod
	
	/**
	 * add userinfo bean
	 * @param user
	 */
	public void addUserInfo(UserInfo user){
		userInfoService.save5(user);
	}
	
	

}
